package org.haifi.game.model;

import java.util.Date;

/**
 * 存储游戏服务器相关内容
 * 
 * @author joycube2
 * 
 */
public class GameServer {
	/**
	 * ID
	 */
	private int id;
	/**
	 * 服务器名
	 */
	private String name;
	/**
	 * 连接地址，可以是ip,也可以是域名
	 */
	private String ip;
	/**
	 * 使用的端口号(为了支持单服务器多个游戏服)
	 */
	private int port;
	/**
	 * 用来进行远程调用验证的key(16位)
	 */
	private String key;
	/**
	 * 类型
	 */
	private ServerType type;
	/**
	 * 状态
	 */
	private ServerStatus status;
	/**
	 * 更新时间
	 */
	private Date updateDate;

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public ServerType getType() {
		return type;
	}

	public void setType(ServerType type) {
		this.type = type;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public ServerStatus getStatus() {
		return status;
	}

	public void setStatus(ServerStatus status) {
		this.status = status;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
}
